//
//  EditVideoHelpers.h
//  OntheRoadV4
//
//  Created by ZhangYanhua on 15/3/5.
//  Copyright (c) 2015年 EricHuang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@protocol EditVideoHelpersDelegate <NSObject>

- (void)trimVideoSuccessfully:(BOOL)success
                       cancel:(BOOL)cancelled
                    outputURL:(NSURL *)outputUrl
                    videoUUID:(NSString *)videoUUID
                    withError:(NSError *)error;

- (void)trimVideoDidUpdateProgress:(double)progress;

@end

@interface EditVideoHelpers : NSObject

@property (nonatomic, weak) id<EditVideoHelpersDelegate> delegate;

- (id)initWithAVAsset:(AVAsset *)asset timeRange:(CMTimeRange)range isHD:(BOOL)isHD;

- (void)startTrimVideo;
- (void)cancel;
@end
